package com.kk.dp.celue;

/**
 * @Description:
 * @Author: kangkai
 * @Date: 2025/3/14 15:19
 */
public class Cat1Comparer implements Comparable1<Cat>{

    @Override
    public int compareTo(Cat cat, Cat t2) {
        if (cat.height < t2.height) {
            return -1;
        } else if (cat.height == t2.height) {
            return 1;
        } else {
            return 0;
        }
    }

}
